﻿@model IEnumerable<IceTea.Domain.Models.PBI> 

@using IceTea.Domain.Models;

@if (Model == null || Model.Count() == 0)
{
    <div class="alert alert-warning">There is no Product Backlog Item for this product</div>
}
else
{
    <div id="pbitree">
    <ul>
        <li>PBI 1
            <ul>
                <li>PBI 1-1</li>
                <li>PBI 1-2</li>
                <li>PBI 1-3</li>
            </ul>
        </li>
        <li>PBI 2</li>
        <li>PBI 3</li>
    </ul>
        </div>
    
<script type="text/javascript">
    $("#pbitree").dynatree({
        title: "Product Backlog Items",
        persist: true,
        strings: {
            loading: "Loading...",
            loadError: "Load Error!"
        }
    });
</script>
}